package cz.data.common.redis;

import cz.data.common.support.YamlPropertySourceFactory;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.data.redis.core.RedisOperations;

@AutoConfigureOrder(0)
@ConditionalOnClass(RedisOperations.class)
@PropertySource(value = "classpath:redis-setting.yml", factory = YamlPropertySourceFactory.class, encoding = "UTF-8")
@AutoConfigureAfter(RedisAutoConfiguration.class)
public class RedisConfiguration {
}
